home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 125 / MOBICLIC 125.ISO / pc / DATA / DSS125 / DSS125_05 / DSS125_05.swf / scripts / frame_20 / DoAction.as
Text File  |  2010-06-16  |  1KB  |  61 lines

  1. function finSonChoix()
  2. {
  3.    gotoAndStop("I_01");
  4.    play();
  5. }
  6. McArray = ["GARCON","FILLE"];
  7. lettreArray = ["B","A"];
  8. if(gJoueur !== undefined)
  9. {
  10.    gJoueur.gotoAndPlay("E1");
  11.    BUG._visible = false;
  12.    SPAM._visible = false;
  13.    WIKI._visible = false;
  14. }
  15. else
  16. {
  17.    initBT_RETOUR();
  18. }
  19. var i = 0;
  20. while(i < 2)
  21. {
  22.    var myMc = this[McArray[i]];
  23.    myMc._visible = true;
  24.    myMc.pLettre = lettreArray[i];
  25.    if(i == 0)
  26.    {
  27.       myMc.pMcAdv = this[McArray[1]];
  28.    }
  29.    else
  30.    {
  31.       myMc.pMcAdv = this[McArray[0]];
  32.    }
  33.    myMc.onRollOver = function()
  34.    {
  35.       gereCursor(2);
  36.       this.gotoAndPlay("E2");
  37.       joueBruitage({nomSon:"B_" + this._name});
  38.    };
  39.    myMc.onRollOut = function()
  40.    {
  41.       gereCursor(1);
  42.       this.gotoAndPlay("E1");
  43.       stopBruitage({nomSon:"B_" + this._name});
  44.    };
  45.    myMc.onPress = function()
  46.    {
  47.       gereCursor(1);
  48.       this.gotoAndPlay("E3");
  49.       this.pMcAdv.gotoAndPlay("E4");
  50.       stopBruitage({nomSon:"B_" + this._name});
  51.       gJoueur = this;
  52.       gSubEnCours = false;
  53.       gListeScoreMaxPos = undefined;
  54.       joueSon({nomSon:this.pLettre,actionFin:"finSonChoix"});
  55.       desactiveClip(this);
  56.       desactiveClip(this.pMcAdv);
  57.    };
  58.    i++;
  59. }
  60. stop();
  61.